<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="/css/style.css?version=<?php echo $version?>" rel="stylesheet" />
<link href="/css/jui/smoothness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet">
<title>综合管理平台</title>
<script language="javascript" src="/js/jquery-1.11.1.min.js"></script>
<script language="javascript" src="/js/manager.js?version=<?php echo $version?>"></script>
<script language="javascript" src="/js/base.js?version=<?php echo $version?>"></script>
<script type="text/javascript" src="/js/jquery-ui-1.10.3.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery.ui.datepicker-zh-cn.js"></script>
<script type="text/javascript">
$(function(){
    $("#time_start").datepicker({
        buttonImage: "images/calendar.gif",
        buttonImageOnly: true,
        changeMonth: true,
        changeYear: true
    });
    $("#time_end").datepicker({
        buttonImage: "images/calendar.gif",
        buttonImageOnly: true,
        changeMonth: true,
        changeYear: true
    });
    
});
</script>
</head>
<body>
<div class="mG_main">
	<!-- main -->
    <div class="mG_module">
          <div class="findlist">
          	<form action="" method="get" id="admin_search_type_form">
          	<table class="tablist">
            	<tr>
                    <td class="td1" ><table>
                    	<tbody>
                    	<tr>
                        	<th>关键词：</th>
                        	<td>
                        		<span>
                        		<input type="text" name="keyword" value="<?php echo $search_item['keyword']?>" id="keyword"/>
                        		</span>
                        	</td>
                        </tr>
                    	<tr>
                        	<th>类型：</th>
                        	<td>
                        		<span>
                        		<select name="message_type" id="message_type">
                        			<?php foreach ($all_message_type as $_key => $_type){
                        				$is_selected = ($_key == $search_item['message_type']) ? 'selected' : '';
                        				echo "<option value=\"{$_key}\" {$is_selected}>{$_type}</option>";
                        			}?>
                        		</select>
                        		</span>
                        	</td>
                        </tr>
                    	<tr>
                        	<th>时间：</th>
                        	<td>
                        		<span>
                        		<input type="text" name="time_start" value="<?php echo $search_item['time_start']?>" id="time_start"/>
                        		-
                        		<input type="text" name="time_end" value="<?php echo $search_item['time_end']?>" id="time_end"/>
                        		</span>
                        	</td>
                        </tr>
                    	<tr>
                        	<th>粉丝ID：</th>
                        	<td>
                        		<span>
                        		<input type="text" name="userid" value="<?php echo $search_item['userid']?>" id="userid"/>
                        		</span>
                        	</td>
                        </tr>
                        <tr>
                        	<th></th><td class="tdbtn" style="text-align: right;">&nbsp;&nbsp;<input type="submit" value=" 搜 索 "></td>
                        </tr>
                    </tbody></table></td>
              </tr>
            </table>
            </form>
            <div style="width: 100%; text-align: right; padding-bottom: 5px;">
            	
            </div>
          </div>

        <div class="user_list">
        <table cellspacing="0" cellpadding="0" class="common_table">
                <colgroup>
                    <col width="15%">
                    <col width="20%">
                    <col width="5%">
                    <col width="*">
                    <col width="10%">
                </colgroup>
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>用户</th>
                        <th>类型</th>
                        <th>内容</th>
                        <th>时间</th>
                    </tr>
                </thead>
                <tbody>
                	<?php 
                	if ($message_list){
                	foreach ($message_list as $item){?>
					<tr>
						<td><?php echo $item['id']?></td>
                        <td><?php echo $item['from_user']?></td>
						<td><?php echo $item['type_str']?></td>
						<td><?php echo $item['content']?></td>
						<td><?php echo $item['add_time']?></td>
                    </tr>
                    <?php }}?>
                </tbody>
            </table>
        <div class="page_selector">
			<a href="#">第一页</a> | 
			<a href="#">上一页</a> | 
			<a href="#">下一页</a>
        </div>
    </div>
        </div>
        <!-- /main-->
        <div class="clearit"></div>
	  </div>
</body>
</html>
